<?php
/**
 * Created by PhpStorm.
 * User: hao
 * Date: 2018/10/26
 * Time: 11:37 AM
 */

namespace app\api\model;


class BannerItem extends BaseModel
{
    protected $visible = ['id','key_word','banner_id','img'];
    public function img(){
        return $this->belongsTo('Image','img_id','id');
    }
}